<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFeedbackOpinionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('feedback_opinions', function (Blueprint $table) {
            $table->increments('id')->comment('意见反馈表');
            $table->text('content')->nullable()->comment('意见内容');
            $table->string('contact', 64)->nullable()->comment('手机号或邮箱');
            $table->tinyInteger('status')->nullable()->comment('状态;未处理0、处理中1、已处理2')->default(0);
            $table->integer('user_id')->comment('用户ID')->default(0);
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('feedback_opinions');
    }
}
